Skip to content

Support android interfaces#1008

Open
jimmykarily wants to merge 3 commits intomudler:masterfrom
jimmykarily:support-android-interfaces
Open

Support android interfaces#1008
jimmykarily wants to merge 3 commits intomudler:masterfrom
jimmykarily:support-android-interfaces

Conversation

@jimmykarily
Copy link
Copy Markdown

Support android interfaces by letting the caller pass it in instead of opening every time. Also allow the caller decide how to log (somewhere withing the android app interface)

instead of opening everytime

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@jimmykarily jimmykarily force-pushed the support-android-interfaces branch from 9a37799 to a25d890 Compare April 14, 2026 16:32
@jimmykarily jimmykarily marked this pull request as ready for review April 15, 2026 06:10
Copy link
Copy Markdown
Owner

@mudler mudler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good !

@mudler mudler enabled auto-merge (squash) April 16, 2026 10:32
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 33.01%. Comparing base (689c89a) to head (a25d890).
⚠️ Report is 725 commits behind head on master.

Files with missing lines Patch % Lines
pkg/node/connection.go 0.00% 1 Missing and 1 partial ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1008      +/-   ##
==========================================
- Coverage   34.32%   33.01%   -1.31%     
==========================================
  Files          26       30       +4     
  Lines        2057     1805     -252     
==========================================
- Hits          706      596     -110     
+ Misses       1249     1107     -142     
  Partials      102      102              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The standard go-libp2p mDNS service calls net.Interfaces() internally,
which triggers a bind() on netlink_route_socket — blocked by SELinux on
Android. Replace the single Run() with two build-tag variants:

- mdns_run.go (!android): original behaviour via mdns.NewMdnsService
- mdns_android.go (android): uses anet.Interfaces() to bypass netlinkrib,
  calls zeroconf.RegisterProxy/Browse directly with explicit interfaces,
  and runs the peer-handling loop in a goroutine so Run() returns
  immediately (matching the non-Android contract — blocking here prevents
  startNetwork() from returning and starves the ledger and VPN service)
auto-merge was automatically disabled April 16, 2026 18:39

Head branch was pushed to by a user without write access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants